EmergencyPlanReviewView=Ext.extend(Ext.Panel,{
    constructor:function(a){
        Ext.apply(this,a);
        var all=this.initUIComponents();
        EmergencyPlanReviewView.superclass.constructor.call(this,{
            id:'EmergencyPlanReviewView',
            title:'应急演练评审',
            region:'center',
            border:'false',
            layout:'border',
            iconCls : "menu-position",
            items : [all.yearGridPanel,all.yearGridSearchPanel]
        })
    },
    initUIComponents:function(){
        var yearGridComponents=new creategridview({
            topbar : {
                inputFormName : 'EmergencyPlanReviewForm',
                topbarAdd:{
                    hidden:false
                },
                topbarDel:{
                    hidden:false
                }
            },
            search : {
                items : [ {
                    style : "margin:5px 5px 5px 5px;",
                    text : "预案编号"
                }, {
                    columnWidth : 0.2,
                    xtype : "textfield",
                    name : "Q_instilNo_S_LK",
                    maxLength : 256
                } ]
            },
            grid : {
                title : "应急演练列表",
                rowActions:true,
                listUrl : __ctxPath + "/emergency/listEmergencyPlanReview.do?Q_exerciseId_L_EQ="+this.exerciseId,
                removeUrl : __ctxPath + "/emergency/deleteEmergencyPlanReview.do",
                fields : [ "id", 'years','institution','exerReviewPeople', "exerReviewDept", "exerReviewTime", "exerReviewContent","exerReviewAdditionalS","exerReAppraisalConclusion","exerRNeedImproveContent"],
                columns : [ {
                    header : "id",
                    dataIndex : "id",
                    hidden : true
                }, {
                    header : "年份",
                    dataIndex : "years",
                    width : 50,
                    hidden:true,
                    sortable : true
                }, {
                    header:"所属机构",
                    dataIndex:'institution',
                    width:100
                },{
                    header : "评审人",
                    dataIndex : "exerReviewPeople",
                    width : 100
                }, {
                    header : "部门",
                    dataIndex : "exerReviewDept",
                    width : 70
                }, {
                    header : "评审时间 ",
                    dataIndex : "exerReviewTime",
                    width : 100
                }, {
                    header:"评审内容",
                    dataIndex:"exerReviewContent",
                    width:100
                }, {
                    header : "需要补充资源",
                    dataIndex : "exerReviewAdditionalS",
                    width : 70
                },{
                    header:"评审结论",
                    dataIndex:"exerReAppraisalConclusion",
                    width:70
                },{
                    header:"需改进内容",
                    dataIndex:"exerRNeedImproveContent",
                    width:70
                }]
            },
            formCfg : {
                exerciseId : this.exerciseId,
                exerciseTheme:this.exerciseTheme
            }
        });
        return yearGridComponents;
    }
});